<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
    'as'            => config('admin.route.prefix') . '.',
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('home');

    $router->get('/agent/index', 'Agent\\HomeController@index');//代理首页

    $router->resource('/agent/orders', 'Agent\\OrderController');// 订单列表
    $router->resource('/agent/agent-recharge-records', 'Agent\\BalanceController');


    $router->resource('/admin/orders', 'Admin\\OrderController');// 订单列表
    $router->resource('/admin/tires', 'Admin\\TireController');//层级列表
    $router->get('/admin/setting', 'Admin\\Setting');//网站设置
    $router->get('/admin/flow-channel-check', 'Admin\\FlowChannelCheck');//网站设置
    $router->resource('/admin/agent-infos', 'Admin\\AgentInfoController');
    $router->resource('/admin/agent-recharge-records', 'Admin\\BalanceController');
    $router->resource('/admin/flow-channels', 'Admin\\FlowChannelController');
    $router->resource('/admin/domain-lists', 'Admin\\DomainListController');
    $router->resource('/admin/check-orders', 'Admin\\CheckOrderController');




});
